package com.qiang.test16;

public class Demo03 {
    public static void main(String[] args) {
        Thread th = new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 5; i++) {
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    System.out.println(i);
                }
            }
        };
        th.start();

    }
}
